import axiosServer from "../utils/request";

export function getTreeList() {
    return axiosServer({
        url: "/api/getList",
        method: "get"
    });
}

export function getInformationList(data) {
    return axiosServer({
        url: "/api/information/list",
        method: "post",
        data: data
    });
}


// 获取顶刊灵感列表
export function getTopJournalList() {
    return axiosServer({
        url: "/api/tree",
        method: "get",
    });
}
// 上传文件并验证
export function testDataUpload(data) {
    return axiosServer({
        url: "/api/testDataUpload",
        method: "post",
        data: data
    });
}
// 绘制图片
export function drawImage(data) {
    return axiosServer({
        url: "/api/testrunChart",
        method: "post",
        data: data
    });
}
// ai上传文件
export function aiUploadFile(data) {
    return axiosServer({
        url: "/api/aiDataUpload",
        method: "post",
        data: data
    });
}